    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    <ui:composition template="/templates/common1.xhtml"  
        xmlns="http://www.w3.org/1999/xhtml"  
        xmlns:h="http://java.sun.com/jsf/html"  
        xmlns:f="http://java.sun.com/jsf/core"  
        xmlns:ui="http://java.sun.com/jsf/facelets"  
        xmlns:p="http://primefaces.org/ui">  
      
        <ui:define name="titulo">Sistema Biblioteca - Cadastro Livro</ui:define>  
      
        <ui:define name="corpo">  
            <h:form id="form">  
                <p:panel id="panel" header="Novo Livro" style="margin-bottom:10px;">  
                    <h:panelGrid columns="2">  
      
                        <h:outputLabel for="isbn" value="ISBN" />  
                        <p:inputText id="isbn" value="#{livroBean.livro.ISBN}"  
                            required="true">  
                            <f:validateLength minimum="2" />  
                        </p:inputText>  
      
                        <h:outputLabel for="titulo" value="Título" />  
                        <p:inputText id="titulo" value="#{livroBean.livro.titulo}"  
                            required="true" />  
                      
                        <h:outputLabel for="dt_lanc" value="Data de Lançamento" />  
                        <p:calendar id="dt_lanc" value="#{livroBean.livro.ano}"/>  
                      
                        <h:outputLabel value="Area" />  
                        <p:selectOneMenu value="#{livroBean.livro.area}">  
                            <f:selectItem itemLabel="Selecione" />  
                            <f:selectItems value="#{livroBean.areas}" var="a"  
                                itemValue="#{a}" itemLabel="#{a.label}"/>  
                        </p:selectOneMenu>  
                          
      
                    </h:panelGrid>  
                </p:panel>  
            </h:form>  
        </ui:define>  
      
    </ui:composition>  